<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>
<script type="text/javascript">
	function appBack() {
		<c:choose>
		<c:when test="${sessionScope.SESSION_USER_INFO.oiAuth eq 'Y'}">
		document.location.href='${requestScope.contextPath}/business/mOI_/mOIJudgeList.do?pageGubun=B&page=${param.page}&endY=${param.endY}';
		</c:when>
		<c:otherwise>
		document.location.href='${requestScope.contextPath}/business/mOI_/mOIMySuggestionList.do?page=${param.page}&endY=${param.endY}';
		</c:otherwise>
		</c:choose>
	}
</script>
<script type="text/javascript" src="${requestScope.contextPath}/js/cubiq-iscroll/iscroll.js"></script>
<script>
var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', { 
		checkDOMChanges: true,
		zoom: true
	});
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
window.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);
</script>
<style type="text/css" media="all">
#wrapper { position:absolute; z-index:1; top:47px; bottom:0px; left:0; width:100%; /*background:#aaa; */ overflow:auto; }
#scroller { position:absolute; z-index:1; /* -webkit-touch-callout:none;*/ -webkit-tap-highlight-color:rgba(0,0,0,0); width:100%; padding:0; background:#fff; }
</style>
<script>
$(document).ready(function(){ 
	$('#viewPage_').find('img').each(function() {
		w = $(this).attr('width');
		h = $(this).attr('height');
		if (w > 230 || w == undefined) {
			imgUrl = "location.href='${requestScope.contextPath}/imgZoom.jsp?imgUrl=" + $(this).attr('src')+"&width="+$(this).attr('width')+"&height="+$(this).attr('height')+"'";
			$(this).attr('width', '230');
			$(this).attr('height', Math.round(h*(230/w)));
			$(this).attr('onClick', imgUrl);
		}
	});
});
</script>
</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>O.I. 제안</h1>
		</div><!-- // header -->
		<div id="wrapper" class="content">
		<div id="scroller">
			<h3>아이디어 제안</h3>
			<div class="table5">
				<table summary="" cellspacing="0" style="width:100%;">
					<caption>아이디어 제안</caption>
					<colgroup>
						<col style="width:25%" />
						<col style="width:75%" />
						</colgroup>
					<tbody>
						<tr>
							<th scope="row"><label for="name">제안자</label></th>
							<td>
								${map.EmpName} ${map.DeptName} (${map.TelNum})
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="date">제안일자</label></th>
							<td>${map.CreateDate}&nbsp;</td>
						</tr>
						<tr>
							<th scope="row">심사부서</th>
							<td>${map.ACCEPTDEPTNAME}</td>
						</tr>
						<c:if test="${map.CompanyCD eq 'KGT' or map.CompanyCD eq 'KIC'}">
						<tr>
							<th scope="row">유형</th>
							<td>${map.SugFlag}&nbsp;</td>
						</tr>
						</c:if>
						<tr>
							<th scope="row"><label for="title">제목</label></th>
							<td>${map.Title}&nbsp;</td>
						</tr>
						<tr>
							<th scope="row"><label for="coment">제안내용</label></th>
							<td><div id="viewPage_">${map.Content}</div>&nbsp;</td>
						</tr>
						<c:if test="${map.DEPTNUM > 1}">
						<tr>
							<th scope="row">심사부서 변경</th>
							<td>${map.judgeDept}&nbsp;</td>
						</tr>
						</c:if>
						<tr>
							<th scope="row"><label for="name1">심사자</label></th>
							<td>${map.JUDGEEMPNAME}&nbsp;</td>
							
						</tr>
						<tr>
							<th scope="row">심사일자</th>
							<td>${map.JUDGEDATE}&nbsp;</td>
						</tr>
						<tr>
							<th scope="row">심사결과</th>
							<td>${map.JUDGERESULT}</td>
						</tr>
						<tr>
							<th scope="row"><label for="coment1">심사의견</label></th>
							<td>${map.JUDGEOPINION}&nbsp;</td>
						</tr>
					</tbody>
				</table>
			</div>
			<p class="btn_more" style="padding-bottom:20px;">
				<c:choose>
				<c:when test="${sessionScope.SESSION_USER_INFO.oiAuth eq 'Y'}">
					<c:if test="${map.EmpID == sessionScope.SESSION_USER_INFO.userId}">
					<c:choose>
					<c:when test="${map.JUDGERESULT ne '대기' and map.JUDGERESULT ne '내용보완'}"><a href="#" onclick="alert('수정이 불가능한 단계입니다.');"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>&nbsp;&nbsp;</c:when>
					<c:otherwise>
						<c:choose>
						<c:when test="${edtChk eq 'Y'}">
						<a href="javascript:alert('PC에서 등록한 글은 PC에서만 수정이 가능 합니다.');"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>
						</c:when>
						<c:otherwise>
						<a href="${requestScope.contextPath}/business/mOI_/mOIIdeaSuggestionModifyForm.do?pageGubun=${param.pageGubun}&seq=${param.seq}&sugflag=${param.sugflag}&page=${page}&endY=${param.endY}"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>
						</c:otherwise>
						</c:choose>
						&nbsp;&nbsp;
					</c:otherwise>
					</c:choose>
					</c:if>
					<a href="${requestScope.contextPath}/business/mOI_/mOIJudgeList.do?pageGubun=${param.pageGubun}&page=${page}&endY=${param.endY}"><img src="${requestScope.contextPath}/images/btn/btn_reset.gif" alt="취소" /></a>
				</c:when>
				<c:otherwise>
					<c:if test="${map.EmpID == sessionScope.SESSION_USER_INFO.userId}">
					<c:choose>
					<c:when test="${map.JUDGERESULT ne '대기' and map.JUDGERESULT ne '내용보완'}"><a href="#" onclick="alert('수정이 불가능한 단계입니다.');"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>&nbsp;&nbsp;</c:when>
					<c:otherwise>
						<c:choose>
						<c:when test="${edtChk eq 'Y'}">
						<a href="javascript:alert('PC에서 등록한 글은 PC에서만 수정이 가능 합니다.');"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>
						</c:when>
						<c:otherwise>
						<a href="${requestScope.contextPath}/business/mOI_/mOIIdeaSuggestionModifyForm.do?seq=${param.seq}&sugflag=${param.sugflag}&page=${page}&endY=${param.endY}"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>
						</c:otherwise>
						</c:choose>
						&nbsp;&nbsp;
					</c:otherwise>
					</c:choose>
					</c:if>
					<a href="${requestScope.contextPath}/business/mOI_/mOIMySuggestionList.do?page=${page}&endY=${param.endY}"><img src="${requestScope.contextPath}/images/btn/btn_reset.gif" alt="취소" /></a>
				</c:otherwise>
				</c:choose>
			</p>
		</div>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>